package com.demo.member;

import com.demo.AppletConstant;
import com.demo.util.Utils;

import java.util.HashMap;
import java.util.Map;

public class queryCardTemplateList {

    public static void main(String[] args) {

        String resultStr = queryCardTemplateList();

        System.out.println("-------创建小程序会员卡模板:"+resultStr+"---------");

    }

    public static String queryCardTemplateList(){
        //调用地址
        String url = "https://open.95516.com/open/access/1.0/queryCardTemplateList";
        //拼装参数Map
        Map params = new HashMap<String, String>(0);
        params.put("appId", AppletConstant.APP_ID);
        params.put("backendToken", AppletConstant.backendToken);

        Map<String,Object> reqData = new HashMap<>();
        reqData.put("pageSize","");
        reqData.put("current","");

        params.put("reqData", reqData);

        System.out.println("生成入参和签名："+params);
        //发送请求
        return Utils.sendPostGson(url, params);
    }

}
